package com.xd.core.finance.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 预存款交易记录分页查询返回vo
 * </p>
 *
 * @author ZCH
 * @since 2025-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PaymentRecordQueryVo {
    @ApiModelProperty(value = "交易时间")
    @ExcelProperty(value = "交易时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING, timezone = "GMT+8")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    @ApiModelProperty(value = "交易编号")
    @ExcelProperty(value = "交易单号")
    private String orderNo;

    @ApiModelProperty(value = "交易总额")
    @ExcelProperty(value = "交易金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "交易状态（1-支付中，2-支付失败，3-支付成功）")
    @ExcelIgnore
    private String status;

    @ApiModelProperty(value = "交易状态（1-支付中，2-支付失败，3-支付成功）")
    @ExcelProperty(value = "交易状态")
    private String statusRemark;

    @ApiModelProperty(value = "债权方机构名称")
    @ExcelProperty(value = "债权方机构名称")
    private String companyName;
}
